package com.cf.module.app;

public class UserModel {

    private static UserModel instance = null;
    private boolean isLogin = false;

    public static UserModel getInstance() {
        if (instance == null) {
            instance = new UserModel();
        }
        return instance;
    }

    public boolean isLogin() {
        return isLogin;
    }

    public void login() {
        isLogin = true;
    }

    public void logout() {
        isLogin = false;
    }
}
